package com.mavenq.fly.business.service.impl;

import com.mavenq.fly.business.entity.OperationLog;
import com.mavenq.fly.business.mapper.OperationLogMapper;
import com.mavenq.fly.business.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private OperationLogMapper operationLogMapper;

    //@Async
    public OperationLog saveLog(OperationLog log) {
        operationLogMapper.insert(log);
        return log;
    }


}